<html>
    <head>
        <title>图书搜索</title>
    </head>
    <body>
        <p> 你搜索的标题:<strong>{{ query }}</strong></p>
        {% if books %}
        <p>共搜到{{ books|length }}本图书</p>
        <ul>
            {% for book in books %}
            <li>{{ book.title }}</li>
            {% endfor %}
        </ul>
        {% endif %}
    </body>
</html>